package com.ys.entity.eKnowAi;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_eknow].[dbo].EKnow_TemplateType", catalog="Id")
public class EKnowTemplateType extends BaseEntity<EKnowTemplateType> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TypeName", nameJava="typeName", typeDataBase="varchar")
	private String typeName;
	@YsField(nameDataBase="SceneId", nameJava="sceneId", typeDataBase="bigint")
	private Long sceneId;
	@YsField(nameDataBase="UpdateUserId", nameJava="updateUserId", typeDataBase="varchar")
	private String updateUserId;
	@YsField(nameDataBase="Sort", nameJava="sort", typeDataBase="int")
	private Integer sort;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public EKnowTemplateType setId(Long id) {
		this.id = id;
		return this;
	}
	public String getTypeName() {
		return typeName;
	}
	public EKnowTemplateType setTypeName(String typeName) {
		this.typeName = typeName;
		return this;
	}
	public Long getSceneId() {
		return sceneId;
	}
	public EKnowTemplateType setSceneId(Long sceneId) {
		this.sceneId = sceneId;
		return this;
	}
	public String getUpdateUserId() {
		return updateUserId;
	}
	public EKnowTemplateType setUpdateUserId(String updateUserId) {
		this.updateUserId = updateUserId;
		return this;
	}
	public Integer getSort() {
		return sort;
	}
	public EKnowTemplateType setSort(Integer sort) {
		this.sort = sort;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public EKnowTemplateType setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public EKnowTemplateType setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public EKnowTemplateType setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static EKnowTemplateType eKnowTemplateType(
		String typeName,
		Long sceneId,
		String updateUserId,
		Integer sort,
		Integer status
			) {
		EKnowTemplateType entity = new EKnowTemplateType();
		entity.setTypeName(typeName);
		entity.setSceneId(sceneId);
		entity.setUpdateUserId(updateUserId);
		entity.setSort(sort);
		entity.setStatus(status);
		return entity;
	}
}